package com.cloudlead.commonData.query;

import static com.mysema.query.types.PathMetadataFactory.*;
import com.cloudlead.commonData.entity.ELoginrecord;


import com.mysema.query.types.path.*;

import com.mysema.query.types.PathMetadata;
import javax.annotation.Generated;
import com.mysema.query.types.Path;

import com.mysema.query.sql.ColumnMetadata;
import java.sql.Types;

import com.mysema.query.sql.*;

import com.cloudlead.common.lang.annotation.Label;


/**
 * QLoginrecord is a Querydsl query type for ELoginrecord
 */
@Label("Loginrecord查询")
@Generated("com.cloudlead.utils.persistence.codegen.serializer.SimpleMetaDataSerializer")
public class QLoginrecord extends RelationalPathBase<ELoginrecord> {

    private static final long serialVersionUID = -2076432207;

    public static final QLoginrecord loginrecord = new QLoginrecord("loginrecord");

    public class PrimaryKeys {

        public final PrimaryKey<ELoginrecord> primary = createPrimaryKey(id);

    }

    public final StringPath area = createString("area");

    public final StringPath device = createString("device");

    public final StringPath flag = createString("flag");

    public final StringPath id = createString("id");

    public final StringPath loginIp = createString("loginIp");

    public final StringPath loginRecordId = createString("loginRecordId");

    public final PrimaryKeys pk = new PrimaryKeys();

    public QLoginrecord(String variable) {
        super(ELoginrecord.class, forVariable(variable), "null", "loginrecord");
        addMetadata();
    }

    public QLoginrecord(String variable, String schema, String table) {
        super(ELoginrecord.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QLoginrecord(Path<? extends ELoginrecord> path) {
        super(path.getType(), path.getMetadata(), "null", "loginrecord");
        addMetadata();
    }

    public QLoginrecord(PathMetadata<?> metadata) {
        super(ELoginrecord.class, metadata, "null", "loginrecord");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(area, ColumnMetadata.named("area").withIndex(4).ofType(Types.VARCHAR).withSize(45));
        addMetadata(device, ColumnMetadata.named("device").withIndex(5).ofType(Types.VARCHAR).withSize(45));
        addMetadata(flag, ColumnMetadata.named("flag").withIndex(6).ofType(Types.VARCHAR).withSize(8));
        addMetadata(id, ColumnMetadata.named("id").withIndex(1).ofType(Types.CHAR).withSize(24).notNull());
        addMetadata(loginIp, ColumnMetadata.named("loginIp").withIndex(3).ofType(Types.VARCHAR).withSize(45));
        addMetadata(loginRecordId, ColumnMetadata.named("loginRecordId").withIndex(2).ofType(Types.VARCHAR).withSize(45));
    }

}

